<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/12
 * Time: 17:42
 */

use doumiaoduo\layer\LayerConfirmWidget;
use doumiaoduo\layer\LayerIframeWidget;
use common\components\helpers\Fun;
use common\components\extenders\MenuManage;

use doumiaoduo\layer\LayerAsset;

LayerAsset::register($this);

LayerConfirmWidget::widget();
LayerIframeWidget::widget();
?>
    <div class="yx-cnt-box yx-praise-content yx-radius2">
        <div class="yx-praise-box">
            <div class="yx-member-info">
                <h3 class="yx-pb15">详情:</h3>
                <table class="yx-member-box yx-member-box1">
                    <?php foreach ($data_arr as $k => $v) { ?>
                        <tr>
                            <td bgcolor="#f8f8f8">订单号</td>
                            <td><?= $v['orders'] ?></td>
                            <td bgcolor="#f8f8f8">老师</td>
                            <td><?= $v['salesman'] ?></td>
                            <td bgcolor="#f8f8f8">付款状态</td>
                            <td><?= $v['status_n'] ?></td>
                            <td bgcolor="#f8f8f8">订单时间</td>
                            <td><?= $v['orders_time'] ?></td>
                            <td bgcolor="#f8f8f8">需结算金额</td>
                            <td><?= $v['settlement_amount'] ?></td>
                        </tr>
                        <tr>
                            <td bgcolor="#f8f8f8">佣金</td>
                            <td><?= $v['commission_money'] ?></td>
                            <td bgcolor="#f8f8f8">佣金比例</td>
                            <td><?= $v['proportion'] ?></td>
                            <td bgcolor="#f8f8f8">结算状态</td>
                            <td><?= $v['status'] ?></td>
                            <td bgcolor="#f8f8f8">结算时间</td>
                            <td><?= $v['settlement_time'] ?></td>
                            <td bgcolor="#f8f8f8">时间</td>
                            <td><?= $v['created_at'] ?></td>
                        </tr>
                    <?php } ?>
                </table>
            </div>

            <div class="yx-member-info">
                <h3 class="yx-pb15">凭证:</h3>
                <table class="yx-member-box yx-member-box1" id="balance-table" style="width: 100%">
                    <tr>
                        <?php foreach ($img_arr as $k => $v){ ?>
                        <td><img style="width: 200px;" src="<?= $v ?>"></td>
                        <?php if (($k+1) % 3 == 0) { ?>
                    </tr>
                    <tr>
                        <?php } ?>
                        <?php } ?>
                    </tr>

                </table>
            </div>
        </div>
    </div>

<?php
$js = <<<JS

JS;
$this->registerJs($js);
?>